package thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: tao
 * Date: 2023-11-25
 * Time: 18:37
 */
class Test2 {
    public int count;

    synchronized public void add() {
        count++;
    }
}
public class ThreadDemo3 {
    public static void main(String[] args) {

    }
}
